package com.um.jdy.common.activity.service;

import com.um.jdy.common.activity.entity.vo.DiscountsAndStationVO;
import com.um.jdy.common.activity.entity.vo.DiscountsVO;
import com.um.springboot.starter.orm.service.BaseEntityService;
import com.um.jdy.common.activity.entity.po.DiscountsStation;

import java.util.List;

/**
 * 服务接口：满减活动站场关联表
 */
public interface DiscountsStationService extends BaseEntityService<DiscountsStation> {

    /**
     * 站场是否有满减金额活动
     * @param deviceStationId
     * @return
     */
    boolean hasMoney(String deviceStationId, Integer amount);

    /**
     * 站场是否有满减打折活动活动
     * @param deviceStationId
     * @return
     */
    boolean hasDiscount(String deviceStationId, Integer amount);

    /**
     * 查询所有满减
     * @return
     */
    List<DiscountsAndStationVO> getAllDiscounts();

    /**
     * 查询满减列表
     * @return
     */
    List<DiscountsVO> getDiscountsList(String deviceStationId, String deviceType);

}
